package model;

public class CustomerService {
	private CustomerDAO dao = new CustomerDAO();
	
	public CustomerBean login(String username,String password) {
		CustomerBean result = null;
		CustomerBean bean = null;
		bean = dao.select(username);
		if(bean!=null){
			if(password.equals(bean.getPassword())){
				result = bean;
			}
		}
		
		
		return result;
	}
}
